package com.example.demo.model.form;

import com.example.demo.model.core.Update;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@Schema(description = "字典项表单对象")
public class DictItemForm implements Serializable {
    @NotNull(message = "id不能为空", groups = Update.class)
    @Schema(description = "字典项Id")
    private Long id;
    @NotEmpty(message = "字典编码不能为空")
    @Schema(description = "字典编码")
    private String dictCode;
    @NotEmpty(message = "字典项值不能为空")
    @Schema(description = "字典项值")
    private String value;
    @NotEmpty(message = "字典项标签不能为空")
    @Schema(description = "字典项标签")
    private String label;
    @Schema(description = "字典项标签类型")
    private String tagType;
    @Schema(description = "排序")
    private Integer ordernum;
    @Schema(description = "备注")
    private String remark;
}
